package com.xbongbong.pro.api.pojo;

import com.xbongbong.saas.enums.OperateTypeEnum;
import com.xbongbong.saas.enums.XbbRefTypeEnum;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

/**
 *
 * @author 魏荣杰
 * @date 2019/10/10 16:51
 * @since v4.3.2.3
 * @version v4.3.2.3
 */
@Setter
@Getter
@ToString
public class ApiWebHookRabbitMqDTO {
    /**
     * 公司id
     */
    private String corpid;
    /**
     * saasMark
     */
    private Integer saasMark;
    /**
     * 数据id
     */
    private List<Long> dataIdList;
    /**
     * 操作
     */
    private OperateTypeEnum operate;
    /**
     * 回调地址
     */
    private String url;
    /**
     * token
     */
    private String token;
    /**
     * 是否重发
     */
    private Integer isRetry;
    /**
     * 业务类型
     */
    private XbbRefTypeEnum xbbRefType;

    public ApiWebHookRabbitMqDTO() {
    }

    public ApiWebHookRabbitMqDTO(String corpid, Integer saasMark, List<Long> dataIdList, OperateTypeEnum operate,
                                 String url, String token, Integer isRetry, XbbRefTypeEnum xbbRefType) {
        this.corpid = corpid;
        this.saasMark = saasMark;
        this.dataIdList = dataIdList;
        this.operate = operate;
        this.url = url;
        this.token = token;
        this.isRetry = isRetry;
        this.xbbRefType = xbbRefType;
    }

}
